//
//  ACEIncomeController.m
//  ACE
//
//  Created by zhangtao on 2018/8/15.
//  Copyright © 2018年 zt.td. All rights reserved.
//

#import "ACEIncomeController.h"
#import "ACEStudyTable.h"
#import "ACECourseDetailController.h"
@interface ACEIncomeController ()<StudyActionDelegate>

@end

@implementation ACEIncomeController
{
    ACEStudyTable *table;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"收入列表";
    ACEStudyTable *table = [[ACEStudyTable alloc]initWithFrame:self.view.bounds style:UITableViewStyleGrouped];
    table.StudyDelegate = self;
    table.actionName = @"删除";
    table.actionBgColor = [UIColor redColor];
    table.separatorStyle = UITableViewCellSeparatorStyleNone;
    [table registerNib:[UINib nibWithNibName:@"ACEStudyTableViewCell" bundle:nil] forCellReuseIdentifier:@"cell"];
    [self.view addSubview:table];
    // Uncomment the following line to preserve selection between presentations.
    // self.clearsSelectionOnViewWillAppear = NO;
    
    // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
    // self.navigationItem.rightBarButtonItem = self.editButtonItem;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


#pragma mark ---- StudyActionDelegate --
-(void)selectIndex:(NSIndexPath *)indexPath{
    ACECourseDetailController *detail = [[ACECourseDetailController alloc]init];
    [self.navigationController pushViewController:detail animated:YES];
}
-(void)actionClickWithIndex:(NSIndexPath *)indexPath{
    NSLog(@"删除。。。");
}




@end
